package com.example.nginxdemo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/k1")
public class TestController {

    @GetMapping("/see")
    public String Test01(){
        System.out.println("成功访问8080端口");
        return "我是king3端口";
    }

    @GetMapping("/query")
    public R<Object>  TestAAA(){
        String[] arr1 = {"123","456"};
        String[] arr2 = {"123","456"};
        String[] arr3 = {"123","456"};
        String a="111";
        String b="111";
        ShiTi shiTi = new ShiTi();
        shiTi.setStep(a);
        shiTi.setT0Time(b);
        shiTi.setLonCal(arr1);
        shiTi.setNamCal(arr2);
        shiTi.setRenderExtent(arr3);

        return new R().setData(shiTi);
    }
}
